package com.zzsong;

import com.zzsong.builder.Computer;
import com.zzsong.builder.Director;
import com.zzsong.builder.HighComputerBuilder;
import com.zzsong.builder.LowComputerBuilder;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

public class Main {

    public static void main(String[] args) {

//        Director director = new Director();
//        Computer lowComputer = director.craete(new LowComputerBuilder());
//        Computer highComputer = director.craete(new HighComputerBuilder());
//        System.out.println(lowComputer.toString());
//        System.out.println(highComputer.toString());
        List<String> list = Arrays.asList("大江东去","浪淘尽","千古","风流人物","故垒西边");
        List<String> resultList = list.stream().map(obj->"哈哈哈："+obj).collect(Collectors.toList());
        System.out.println(resultList);

    }
}
